package com.itmate.webpro.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/alarm")
public class YaBanAlarm {
	
	@RequestMapping(value = "/getAlarmInfo", method = RequestMethod.GET)
    public String getAlarm(String id) {
    	    
		return id;
	}
	
	
	@RequestMapping(value = "/pushAlarmInfo", method = RequestMethod.POST)
    public String pushData(String id,String name) {
		return id + "_"+name;
	}
	
	
}
